@import 'common';

#container {
    position: relative;
    background-color: #f1f1f1;
    font-family: "微软雅黑";
    padding-top: 50px;
    .sub-billboard {
        height: 250px;
        margin-top: -50px;
    }
    .sub-billboard.shopping {
        background-image: url("../images/special-bg.jpg");
    }
    .billboard {
        text-align: center;
        color: #FFF;
        background: center top no-repeat #222;
        background-size: cover;
        .wrapper {
            height: 200px;
            padding-top: 90px;
            position: fixed;
            width: 100%;
            left: 0;
            top: 0;
            display: inline-table;
            .inner {
                width: 100%;
                height: 100%;
                display: table-cell;
                vertical-align: middle;
                h1 {
                    font-size: 28px;
                    letter-spacing: 1px;
                    line-height: 1.2;
                    margin-bottom: 10px;
                }
            }
        }
    }
    .content {
//      width: 1260px;
        max-width: 1260px;
        margin: 0 auto;
    }
    .shop {
        background-color: #F1F1F1;
        position: relative;
        .navcaret#guide {
            text-align: center;
            padding-top: 10px;
            background-color: #f1f1f1;
            position: relative;
            .group {
                height: 50px;
                border-bottom: 1px solid #D8D8D8;
                &:after {
                    content: "";
                    display: block;
                    height: 0;
                    clear: both;
                    visibility: hidden;
                }
                ul {
                    li {
                        position: relative;
                        font-size: 14px;
                        height: 50px;
                        cursor: pointer;
                        float: none;
                        display: inline-block;
                        margin: auto 20px -1px;
                        a {
                            color: #666;
                            display: block;
                            padding: 11px 10px 16px;
                            &:hover {
                                text-decoration: none;
                            }
                        }
                    }
                    .current-cat {
                        border-bottom: 1px solid #666;
                    }
                }
            }
        }
        .Tab-content#primary {
            display: block;
        }
        .special {
            display: none;
            background-color: #f1f1f1;
            position: relative;
            margin: 0;
            padding-bottom: 30px;
            .article {
                background-color: #FFF;
                box-shadow: 0 1px 1px rgba(0,0,0,0.15);
                margin-bottom: 30px;
                position: relative;
                margin-top: 0;
                ul {
                    height: auto;
                    overflow: hidden;
                    padding: 40px;
                    li {
                        float: left;
                        width: 50%;
                        .item {
                            background-color: #FFF;
                            margin: 0 30px 30px 30px;
                            border-bottom: 1px solid #e1e1e1;
                            padding-bottom: 0;
                            .thumb {
//                              height: 250px;
                                position: relative;
                                a {
                                    max-height: 250px;
                                    overflow: hidden;
                                    display: block;
                                    img {
                                        width: 530px;
                                        height: 250px;
                                        max-width: 100%;
                                        height: auto;
                                        display: block;
                                        margin: auto;
                                    }
                                }
                                .read-more {
                                    position: absolute;
                                    top: 50%;
                                    left: 50%;
                                    color: white;
                                    display: block;
                                    border-radius: 50%;
                                    border: 1px solid white;
                                    opacity: 0;
                                    transition: all 0.5s;
                                }
                                .activity {
                                    position: absolute;
                                    width: 90px;
                                    height: 90px;
                                    background-position: 0 -180px;
                                    top: -5px;
                                    left: -5px;
                                    background: url(../images/activity-status.png) no-repeat;
                                }
                            }
                            .title{
                                margin-top: 20px;
                                h2 {
                                    font-size: 14px;
                                    margin: 20px auto 10px auto;
                                    white-space: nowrap;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    position: relative;
                                    padding-right: 100px;
                                    a {
                                        color: #666;
                                        transition: all 0.4s;
                                    }
                                    .time {
                                        color: #999;
                                        position: absolute;
                                        right: 0;
                                        font-size: 12px;
                                    }
                                }
                            }
                        }
                        &:hover .item .thumb .read-more {
                            font-size: 100px;
                            top: 26%;
                            left: 40%;
                            transform: rotate(20deg);
                            opacity: 0.75;
                        }
                        &:hover .item .title h2 a{
                            text-decoration: none;
                            color: #00c3b6;
                        }
                    }
                }
            }
        }
    }
}

@media only screen and (max-width:768px) {
    #container {
        .shop{
            .special {
                .article {
                    ul{
                        li{
                            .item {
                                width: 200%;
                                height: auto;
                                margin: auto;
                                .thumb{
                                    width: 100%;
                                    a{
                                        img{
                                            width: 100%;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
